﻿@{  
    ViewBag.Title = "Database";
    }
@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title.</h1>
                <h2>Doorzoek hier de database naar de gewenste meetinstrumenten.</h2>
            </hgroup>
            <p>
            </p>
        </div>
    </section>
}

<div>    
     <h2>Gevonden Meetinstrumenten:</h2>
    
     <table>
         <tr>
             <th style="padding:5px;">Meet instrument</th>
             <th style="padding:5px;">Afkorting</th>
             <th style="padding:5px;">Soort instrument</th>
             <th style="padding:5px;">Auteurs</th>
             <th style="padding:5px;">Documenten</th>
             <th style="padding:5px;"></th>
         </tr>
     
     @foreach (var item in ViewData["Meetinstrumenten"] 
     as List <MIZ.Models.Meetinstrument>)
     {
         <tr border="1" style="border:1px solid black;">
             <td style="padding:5px;">@item.Meet_instrument</td>
             <td style="padding:5px;">@item.Afkorting</td>
             <td style="padding:5px;">@item.Soort_instrument</td>
             <td style="padding:5px;">@item.Auteurs</td>
             <td style="padding:5px;">@item.Documenten</td>
             <td style="padding:5px;">                
                 @Html.ActionLink("Details", "Details", new { id=item.Id })                 
             </td>
         </tr>
     } 
     </table>   
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
